import http from '../http'
//职位
export const getPositionApi = (params ={}) => {
    return http({
        url: "/position/selectByPage",
        method: "post",
        params
    })
}

export const getPositionCount=()=>http({
    url:"/position/getPositionList",
    method:"post",
})

export const delectApi = (params={}) => http({
    url: "/position/delete",
    method: "post",
    params
})

export const onChangeApi = (data={}) => http({
    url: "/position/updateIsUsed",
    method: "post",
    data
})

export const addPositionApi = (data={}) => http({
    url: "/position/add",
    method: "post",
    data
})

export const PositionUpdateApi = (data={}) =>{
    console.log(data);
    return http({
        url: "/position/update",
        method: "post",
        data

    })
}